// ------------------------------------------------------ Naming ------------------------------------------------------
Name Ilyushin Il-10 Beast China
ShortName Il-10_China
// ------------------------------------------------------ Visuals ------------------------------------------------------
Model pla.il10_china
ModelScale 1
Icon iconil10_china
Texture il10_china
//Third Person Camera Distance
CameraDistance 17.0
//Resting Pitch. Set this so the plane spawns level. It will fall onto its collision boxes automatically, but this lets you start it flat
RestingPitch 5.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Plane
//Throttle
MaxThrottle 0.6
MaxNegativeThrottle 0.0
Drag 1
//Movement
TurnLeftSpeed 1.5
TurnRightSpeed 1.5
LookUpSpeed 1.2
LookDownSpeed 1.2
RollLeftSpeed 1.8
RollRightSpeed 1.8
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 1.0
//Wheels
NumWheels 3
WheelPosition 0 18 -42 -35
WheelPosition 1 18 -42 35
WheelPosition 2 -152 -10 0
WheelSpringStrength 0.125
//Propeller Positions
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 0 0 0 nose Repair
// ------------------------------------------------------ Weaponry ------------------------------------------------------
Primary Gun
ShootParticlesPrimary flansmod.fmflame 0 0 0
Secondary Bomb
ShootDelayPrimary 3
ShootDelaySecondary 5
AlternatePrimary False
AlternateSecondary True
ModePrimary FullAuto
ModeSecondary SemiAuto
ShootPointPrimary 53 -11 -54 leftWing rpd
ShootPointPrimary 53 -11 54 rightWing rpd
ShootPointSecondary 8 -19 -16 bay
ShootPointSecondary 8 -19 16 bay
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 2
MissileSlots 0
FuelTankSize 6000
PlaceSoundPrimary Camel_PlaceSound
AllowAllAmmo False
AddAmmo largeBomb
AddAmmo smallBomb
AddAmmo napalm
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot -9 -2 0
Passengers 1
Passenger 1 -33 -2 0 core 150 210 0 50 rpd PassengerGun1
GunOrigin 1 46 45 0
flightCeiling 952
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound propStart
StartSoundLength 20
PropSound propSound
PropSoundLength 30
ShootSoundPrimary YakShoot
ShootSoundSecondary warthunder30mm
PlaceSoundPrimary A6M2_PlaceSound
// ------------------------------------------------------ Recipe ------------------------------------------------------
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts core 1 Repair
AddRecipeParts rightWing 1 Repair
AddRecipeParts leftWing 1 Repair
AddRecipeParts tail 1 Repair
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 30 -14 31 -5 10 20 10
SetupPart airframe 155 -62 20 -10 124 24 20
SetupPart tail 55 -155 23 -7 93 21 20
SetupPart rightWing 70 -34 20 10 45 14 132
SetupPart leftWing 70 -34 20 -142 45 14 132

CollisionPoint 67 32 0 core
CollisionPoint 67 32 0 core
CollisionPoint 67 32 0 core
CollisionPoint 67 32 0 core
CollisionPoint 67 32 0 core
CollisionPoint 67 32 0 core
CollisionPoint 67 32 0 core
CollisionPoint 67 32 0 core
CollisionPoint -64 34 0 tail
CollisionPoint -80 34 0 tail
CollisionPoint -96 34 0 tail
CollisionPoint -112 34 0 tail
CollisionPoint -128 34 0 tail
CollisionPoint -144 34 0 tail
CollisionPoint -7 27 16 rightWing
CollisionPoint -7 29 32 rightWing
CollisionPoint -7 30 48 rightWing
CollisionPoint -7 31 64 rightWing
CollisionPoint -7 31 80 rightWing
CollisionPoint -7 32 96 rightWing
CollisionPoint -7 33 112 rightWing
CollisionPoint -7 34 128 rightWing
CollisionPoint -7 27 -16 leftWing
CollisionPoint -7 29 -32 leftWing
CollisionPoint -7 30 -48 leftWing
CollisionPoint -7 31 -64 leftWing
CollisionPoint -7 31 -80 leftWing
CollisionPoint -7 32 -96 leftWing
CollisionPoint -7 33 -112 leftWing
CollisionPoint -7 34 -128 leftWing
BulletDetection 11

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 20